local M = {}


--------------------------
-- 公共方法
--------------------------
-- 播放音效
function M:playSound(fileName, isCycle)
    local isCycle = ifnil(isCycle, false)
    local nowSound = sound.playSound("effect/".. fileName ..".mp3", isCycle)
    self._nowSound = nowSound
    return nowSound
end

-- 停止当前音效
function M:stopNowSound()
    if self._nowSound then 
        sound.stopSound(self._nowSound)
        self._nowSound = nil 
    end 
end


--------------------------
-- 音效
--------------------------
-- 示例 播放通用点击音效
function M:playEffect17901001()
    return self:playSound("17901001")
end



return M